import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';

/**
 * @desc 为了方便，将reducer 和 action 写到了一起
*/

// todos
import user from './user';

// 使用redux的combineReducers方法将所有reducer打包起来
const rootReducer = combineReducers({
  	user, // 用户的一些信息
  	routing: routerReducer // 整合路由 
})

export default rootReducer;